/*******************************************************************************
* Project: QSAR(Cute Software Architecture) 
*
* Copyright: Copyright(C) 2024 by YuetingBen, All Rights Reserved
*
* File name: MemIfCfg.h
*
* Brief: ;
*
* Author: Yueting.Ben
*
* Module: MemIf
*
*******************************************************************************/

#ifndef MEMIFCFG_H
#define MEMIFCFG_H

/** HEADER FILES **/
#include "MemIfType.h"
#include "MemIfRte.h" 


/** MACRO DEFINITION **/
#define MEMIF_NUMBER_OF_DEVICES 2u


/** TYPEDEF DEFINITION **/
typedef Std_ReturnType (*MemIf_ApiReadType)(
    uint16 BlockNumber,
    uint16 BlockOffset, 
    uint8* DataBufferPtr, 
    uint16 Length
);
typedef Std_ReturnType (*MemIf_ApiWriteType)(
    uint16 BlockNumber, 
    const uint8* DataBufferPtr
);


typedef struct
{
	MemIf_ApiReadType                   Read;
	MemIf_ApiWriteType                  Write;
} MemIf_MemApi_Type;


/** LOCAL DATA DEFINITION **/
extern const MemIf_MemApi_Type MemIf_MemHwaApis[MEMIF_NUMBER_OF_DEVICES];


#endif
